package com.hnas.hnt.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hnas.core.dao.HntBaseDaoImpl;
import com.hnas.hnt.orm.SubJectDic;

@Component("subJectDicDAO")
public class SubJectDicDAOImpl extends HntBaseDaoImpl<SubJectDic> implements SubJectDicDAO {

	public SubJectDicDAOImpl() {
		super(SubJectDic.class);
	}

	@Override
	public List<SubJectDic> getSubJectDics() {
		// select * from M_ACCT_SUBJECT_DIC t where t.sub_type = 2 and t.parent_sub_id = '2241' order by t.sub_id asc;
		List<SubJectDic> list = this.findByQuery("from SubJectDic t where t.subType = 2 and t.parentSubId = '2241' order by t.subId ASC");
		return list;
	}
}
